package com.sample.dubbo.demo.api;

import com.sample.dubbo.demo.dto.Customer;
import com.sample.dubbo.demo.dto.QuerySchema;

import java.util.ArrayList;
import java.util.List;

public class CustomerServiceMock implements CustomerService {
    @Override
    public Customer save(Customer customer) {
        customer.setCode("Mock00001");
        return customer;
    }

    @Override
    public List<Customer> query(QuerySchema querySchema) {
        return new ArrayList<>();
    }

    @Override
    public Customer find(Long id) {
        Customer customer = new Customer();
        customer.setId(id);
        customer.setCode("Mock00001");
        return customer;
    }

    @Override
    public boolean delete(Long id) {
        return false;
    }
}